package com.iot08.common.entity.app;

import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;
import org.springframework.data.mongodb.core.mapping.Field;

import java.io.Serializable;
import java.util.Map;

@Data
@Document("visit_history")
public class VisitHistory implements Serializable {
    private static final long serialVersionUID = 1L;

    @Field("_id")
    private String id;

    private String openid;

    //性别 1=男，2=女
    private Integer sex;

    private String phone;

    //注册时间
    @Field("reg_time")
    private Long regTime;

    @Field("d")
    private Map<String, Map<String, Object>> devices;

    //活跃时间
    private Long time;

    private Double lon;

    private Double lat;

    private String province;

    private String city;

    private String address;

    private String group;

}
